package com.jmp.push;

import com.jmp.base.dto.MessagePushType;

public enum MessagePushTypeEnum {
    /**
     * 订单状态通知
     */
    ORDER_STATE_CRM(MessagePushType.ORDER_STATE_CRM, "订单状态通知", "pages/orderLists/main?goType=1", "{\\\"type\\\": \\\"2\\\"}", "订单号%s, 商品名称%s, 订单金额%s, 订单状态%s", false),
    /**
     * 订单发货提醒
     */
    ORDER_DELIVER(MessagePushType.ORDER_DELIVER, "订单发货提醒", "pages/orderLists/main?goType=1", "{\\\"type\\\": \\\"2\\\"}", "订单编号%s，留言%s，商品信息%s，订单总价%s", false),
    /**
     * 订单取消通知
     */
    ORDER_CANCEL(MessagePushType.ORDER_CANCEL, "订单取消通知", "pages/orderLists/main?goType=1", "{\\\"type\\\": \\\"1\\\"}", "%s", false),
    /**
     * 退货申请通知
     */
    REFUND_APPLY(MessagePushType.REFUND_APPLY, "退货申请通知", "pages/orderLists/main?goType=1", "{\\\"type\\\": \\\"2\\\"}", "订单编号%s，申请时间%s，商品名称%s，退货金额%s，退货原因%s", false),
    /**
     * 新订单通知
     */
    NEW_ORDER(MessagePushType.NEW_ORDER, "新订单通知", "pages/orderLists/main?goType=1", "{\\\"type\\\": \\\"2\\\"}", "订单号%s，商品名称%，公司名称%s，订单金额%s，收货人%s", false),

    /**
     * 评论回复通知（咨询回复通知）
     */
    COMMENT_REPLY(MessagePushType.COMMENT_REPLY, "咨询回复通知", "pages/articleDetail/main?goType=1&id=%s", null, "回复者%s, 回复时间%s, 回复内容%s", false),

    /**
     * 需求提交成功提醒
     */
    FROM_SUBMIT(MessagePushType.FROM_SUBMIT, "需求提交成功提醒", "pages/webSiteMsg/main?goType=1", null, "客户姓名%s, 提交日期%s, 需求信息%s", false),

    CUSTOMER_ADD(MessagePushType.CUSTOMER_ADD, "收到新客户！", "pages/clientDetail/main?&cardId=%s", null, "已接收到您从名片里存入的客户，点击备注客户信息吧", false),

    /**
     * 未读消息提醒（未读回信提醒）
     */
    UNREAD_MESSAGE(MessagePushType.UNREAD_MESSAGE, "%s", "pages/msg/main?goType=1", "{\\\"type\\\": \\\"29\\\",\\\"chatId\\\":\\\"%s\\\",\\\"name\\\":\\\"%s\\\"}", "%s", false),

    /**
     * 客户来访提醒
     */
    CUSTOMER_ACCESS(MessagePushType.CUSTOMER_ACCESS, "客户来访提醒", "pages/index/main", "{\\\"type\\\": \\\"19\\\"}", "%s正在查看您的名片，马上联系成交率更高哦！", false),
    SEE_PRODUCT(MessagePushType.SEE_PRODUCT, "客户来访提醒！", "pages/index/main", "{\\\"type\\\": \\\"19\\\"}", "%s正在查看你的产品，快去看看吧", false),
    SEE_DYNAMIC(MessagePushType.SEE_DYNAMIC, "客户来访提醒！", "pages/index/main", "{\\\"type\\\": \\\"19\\\"}", "%s正在查看你公司的动态，快去看看吧", false),
    SEE_OFFICIAL(MessagePushType.SEE_OFFICIAL, "客户来访提醒！", "pages/index/main", "{\\\"type\\\": \\\"19\\\"}", "%s正在查看你公司的官网，快去看看吧", false),
    SEE_GOODS(MessagePushType.SEE_GOODS, "客户来访提醒！", "pages/index/main", "{\\\"type\\\": \\\"19\\\"}", "%s正在查看你的产品%s，快去看看吧", false),
    SEE_GOODS_JXS(MessagePushType.SEE_GOODS_JXS, "客户来访提醒！", "pages/index/main", "{\\\"type\\\": \\\"19\\\"}", "%s正在通过花园购经销版查看你的产品%s，快去看看吧", false),
    SEE_GOODS_GROUP(MessagePushType.SEE_GOODS_GROUP, "%s", "pages/showBill/main", "{\\\"type\\\": \\\"19\\\"}", "%s", true),

    /**
     * 海报发布
     */
    CARD_UP(MessagePushType.CARD_UP, "%s", "pages/showBill/main", "{\\\"type\\\": \\\"23\\\"}", "%s", true),
    /**
     * 文章发布
     */
    ARTICLE_UP(MessagePushType.ARTICLE_UP, "%s", "pages/shareCustomDetail/main?id=%s", "{\\\"type\\\": \\\"23\\\",\\\"articleId\\\":\\\"%s\\\"}", "%s", true),
    /**
     * 文章浏览
     */
    ARTICLE_VIEW(MessagePushType.ARTICLE_VIEW, "红木头条", "pages/shareCustom/main?articleId=%s", "{\\\"type\\\": \\\"19\\\",\\\"articleId\\\":\\\"%s\\\"}", "%s正在阅读您的文章%s", false),

    /**
     * 奖券订单审核
     */
    TICKET_ORDER_PASS(MessagePushType.TICKET_ORDER_PASS, "您的展销会订单已通过审核！", "pages/jxs/index/main", null, "订单编号：%s，点击查看我的兑奖详情！", false),
    TICKET_ORDER_REFUSE(MessagePushType.TICKET_ORDER_REFUSE, "%s", "pages/jxs/index/main", null, "订单编号：%s，点击查看订单详情！", false),

    LIVE_ROOM_OPEN(MessagePushType.LIVE_ROOM_OPEN, "红木直播开播提醒", "live?roomId=%s", "{\\\"type\\\": \\\"28\\\",\\\"roomId\\\":\\\"%s\\\"}", "您预约的%s企业直播已经开播，点击进入", false),
    /**
     * IM 联系我
     */
    IM_CONTACT(MessagePushType.IM_CONTACT, "%s", "pages/jxs/index/main?chatId=%s", "{\\\"type\\\": \\\"29\\\",\\\"chatId\\\":\\\"%s\\\",\\\"name\\\":\\\"%s\\\"}", "点击进入开始与客户聊天", false),


    /**
     * 拼图发布
     */
    GOODS_GROUP(MessagePushType.GOODS_GROUP, "%s", "pages/showBill/main", "{\\\"type\\\": \\\"31\\\"}", "%s", true),
    ;

    private MessagePushType code;
    private String name;
    private String page;
    private String page2;//crm app专用
    private String pushContent;
    private boolean sameTitleAndContent;

    MessagePushTypeEnum(MessagePushType code, String name, String page, String page2, String pushContent, boolean sameTitleAndContent) {
        this.code = code;
        this.name = name;
        this.page = page;
        this.page2 = page2;
        this.pushContent = pushContent;
        this.sameTitleAndContent = sameTitleAndContent;
    }

    public String getName() {
        return name;
    }

    public String getPage() {
        return page;
    }

    public String getPage2() {
        return page2;
    }

    public String getPushContent() {
        return pushContent;
    }

    public boolean isSameTitleAndContent() {
        return sameTitleAndContent;
    }
}
